package com.fanyouzhao.ehome.dao.impl;

import com.fanyouzhao.ehome.dao.BaseDao;
import com.fanyouzhao.ehome.dao.CpDao;
import com.fanyouzhao.ehome.entity.Cp;

import java.util.List;

/**
 * @Author: fanyouzhao
 * @Date: 10:04 2021/5/10
 */
public class CpDaoImpl extends BaseDao<Cp> implements CpDao {

    @Override
    public Integer insert(Cp cp) throws Exception{
        return super.insert(cp);
    }

    @Override
    public List<Cp> selectAll() throws Exception {
        return super.selectAll(Cp.class);
    }

    @Override
    public List<Cp> selectBypage(Integer page,Integer size) throws Exception {
        return super.selectByPage(page,size,Cp.class);
    }

    @Override
    public Cp selectById(Integer id) throws Exception {
        return super.selectById(id,Cp.class);
    }

    @Override
    public Integer update(Integer id, Cp cp) throws Exception{
        return super.update(id,cp);
    }

    @Override
    public Integer deleteById(Integer id) throws Exception {
        return super.deleteById(id,Cp.class);
    }

    @Override
    public Integer getCount() throws Exception {
        return super.getCount(Cp.class);
    }
}
